﻿namespace UtilZ.Dotnet.Ex.Communication.Net.Web
{
    /// <summary>
    /// 错误的请求结果
    /// </summary>
    public class ApiBadRequest : ApiActionResultAbs
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        public ApiBadRequest()
            : base()
        {

        }


        /// <summary>
        /// 设置响应值
        /// </summary>
        /// <param name="request">http请求</param>
        /// <param name="response">http响应</param>
        protected override void PrimitiveSetResponse(HttpRequest request, HttpResponse response)
        {
            response.StatusCode = HttpStatusCodes.BadRequest;
        }
    }
}
